package com.example.lbs.mapper;

import com.example.lbs.model.Shop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ShopMapper {

    int insert(Shop shop);

    int update(Shop shop);

    int delete(@Param("id") Long id);

    Shop findById(@Param("id") Long id);

    List<Shop> findAll();
}